Skip to content

Refactor KPI logic to use LastSale from projection state#505

Merged
StuartFerguson merged 1 commit intomainfrom
bug/#488_merchant_kpis_wrong
Mar 12, 2026
Merged

Refactor KPI logic to use LastSale from projection state#505
StuartFerguson merged 1 commit intomainfrom
bug/#488_merchant_kpis_wrong

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Switched merchant KPI calculations to use the LastSale property from MerchantBalanceProjectionState instead of LastSaleDate/LastSaleDateTime from Merchant. Updated test data setup to set LastSale on the projection state, centralizing last sale tracking.

closes #488

Switched merchant KPI calculations to use the LastSale property from MerchantBalanceProjectionState instead of LastSaleDate/LastSaleDateTime from Merchant. Updated test data setup to set LastSale on the projection state, centralizing last sale tracking.
@StuartFerguson StuartFerguson added the bug Bugs and error-prone code label Mar 12, 2026
@StuartFerguson StuartFerguson merged commit dcf02d1 into main Mar 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs and error-prone code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merchant KPI not showing correct value

1 participant